<template>
   <div>
      同胞传值
      <button @click="fun()">点我 同胞传值</button>
  </div>
</template>

<script>
import Eventbus from "@/eventBus"
export default {
   data(){
      return {
         text:"同胞ziB的数据"
      }
   },
   methods:{
      fun(){
         Eventbus.$emit("zi1",this.text)
      }
   }

}
</script>

<style>

</style>